home *** CD-ROM | disk | FTP | other *** search
- Path: moon.yzit.edu.tw!ccthkr
- From: ccthkr@moon.yzit.edu.tw (Thinker Li)
- Newsgroups: comp.lang.c++
- Subject: G++ : nest declare class
- Date: 10 Apr 1996 04:25:01 GMT
- Organization: Dept. Comp. Sci. & Info. Eng., Chiao-Tung Univ., Taiwan
- Message-ID: <4kfd6t$ish@news.csie.nctu.edu.tw>
- NNTP-Posting-Host: ccthkr%@moon.yzit.edu.tw
- X-Newsreader: TIN [version 1.2 PL2]
-
- When I declare a class in another clas like
- template <class T>
- class a {
- class b {
- public:
- b *h();
- };
- };
- In GNU C++ ....
- I think that I can define method h() of "class b"
- outside "class a" just like :
-
- template <class T>
- a<T>::b *a<T>::b::h() { ... }
-
- but G++ 2.7.2 give me a error message.....
- Is it wrong of me?? or it is wrong of G++ ???
-